package cn.com.zero.manager.auth.po;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.com.zero.base.po.BasePO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;

/**
 * @author guoxin
 * @version 1.0.0
 * @Description 角色表
 * @date 2023/2/13 15:00
 */
@ApiModel(value = "RolePO",description = "角色表")
public class RolePO extends BasePO {

    @ApiModelProperty(value = "角色编号")
    @Excel(name = "角色编号",width = 20,orderNum = "1")
    private String roleCode;

    @ApiModelProperty(value = "角色名称")
    @Excel(name = "角色名称",width = 20,orderNum = "2")
    private String roleName;

    @ApiModelProperty(value = "排序号")
    @Excel(name = "排序号",width = 20,orderNum = "3")
    private Integer sort;

    @ApiModelProperty(value = "备注")
    @Excel(name = "备注",width = 20,orderNum = "4")
    private String note;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, format = "yyyy-MM-dd HH:mm:ss", orderNum = "5")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, format = "yyyy-MM-dd HH:mm:ss", orderNum = "6")
    private Date modifyTime;

    @ApiModelProperty(value = "菜单")
    private List<MenuPO> menuPOS;

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public List<MenuPO> getMenuPOS() {
        return menuPOS;
    }

    public void setMenuPOS(List<MenuPO> menuPOS) {
        this.menuPOS = menuPOS;
    }
}
